<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" >
    <title>管理员后台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/cart.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/dist/css/bootstrap.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/animate.css}"/>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <style>
        /* 添加自定义样式 */
        body {
            background-color: #f5f5f5;
            font-family: Arial, sans-serif;
        }
        .container {
            margin-top: 50px;
        }
        h2 {
            margin-bottom: 20px;
        }
        .card {
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .card-header {
            background-color: #007bff;
            color: #fff;
            padding: 10px 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.125);
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
        }
        .card-body {
            padding: 20px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-control {
            width: 100%;
            padding: .375rem .75rem;
            font-size: 1rem;
            line-height: 1.5;
            color: #495057;
            background-color: #fff;
            background-clip: padding-box;
            border: 1px solid #ced4da;
            border-radius: .25rem;
            transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
        }
        button.btn-primary {
            background-color: #007bff;
            border-color: #007bff;
        }
        button.btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }
    </style>
</head>

<body>
<!-- 导航部分  begin -->
<div th:replace="admin/common/header :: nav"></div>
<!-- 导航部分 end -->
<!-- 内容容器 -->
<div class="container">
    <!-- 主体内容区 -->
    <div class="row">
        <div class="col-md-8">
            <h2>欢迎来到管理员后台</h2>
            <p>在这里，您可以管理网站的各项功能。</p>
        </div>
        <div class="col-md-4">
            <!-- 新增用户表单 -->
            <div class="card">
                <div class="card-header">
                    新增用户
                </div>
                <div class="card-body">
                    <form class="layui-form" method="post" action="/book/admin/addUser" accept-charset="UTF-8">
                        <div class="form-group">
                            <label for="username">用户名：</label>
                            <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名" required>
                        </div>
                        <div class="form-group">
                            <label for="password">密码：</label>
                            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码" required>
                        </div>
                        <div class="form-group">
                            <label for="email">邮箱：</label>
                            <input type="email" class="form-control" id="email" name="email" placeholder="请输入邮箱" required>
                        </div>
                        <div class="form-group">
                            <label for="phone">电话：</label>
                            <input type="tel" class="form-control" id="phone" name="phone" placeholder="请输入电话">
                        </div>
                        <div class="form-group">
                            <label for="school">学校：</label>
                            <input type="text" class="form-control" id="school" name="school" placeholder="请输入学校">
                        </div>
                        <button type="submit" class="btn btn-primary">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


</body>

</html>
